package com.atguigu.a_operator;

public class Demo6 {
    public static void main(String[] args) {
        System.out.println(true & true);
        System.out.println(true & false);
        System.out.println(false & true);
        System.out.println(false & false);
        System.out.println("---------------------");
        System.out.println(true && true);
        System.out.println(true && false);
        System.out.println(false && true);
        System.out.println(false && false);
        System.out.println("---------------------");
        //性能优化
        int x = 10;
        System.out.println(false && x++ > 10);//false
        //System.out.println(false & x++ > 10);//false
        System.out.println("x = " + x);//10
    }
}
